local meta = FindMetaTable( "Player" );

function GM:Think()
	
	for _, v in pairs( player.GetAll() ) do
		
		v:Think();
		
	end
	
	for _, n in pairs( ents.GetAll() ) do
		
		if( table.HasValue( C.NoGravApplied, n:GetClass() ) or n.Cosmic ) then
			
			C.CheckPlanetDistance( n );
			C.RefreshGravity( n );
			
		end
		
	end
	
	C.RunEarthquakes();
	
end

function meta:Think()
	
	C.RefreshGravity( self );
	C.OxyDamage( self );
	C.TempDamage( self );
	C.CheckNoClip( self );
	
end